package jk.fox.registry.register;

import jk.fox.common.exception.RpcRegistryException;
import jk.fox.engine.RpcNodeDefinition;

/**
 * @author cuichao
 * @Description: RegistryConfigurationBuilder
 * @Date: create in 2020/4/16 21:07
 */
public interface NodeRegister  {
    /**
     * 注册
     * @param definition
     * @param url
     * @throws RpcRegistryException
     */
    void registry(RpcNodeDefinition definition, String url) throws RpcRegistryException;
    /**
     * 取消注册
     * @param definition
     * @param url
     * @throws RpcRegistryException
     */
    void unRegistry(RpcNodeDefinition definition, String url) throws RpcRegistryException;


}
